using System;
using System.Configuration;
using Sustainalytics.DataLayer.ConnectionStrings;
using Sustainalytics.Entities.ConnectionStrings;

namespace Sustainalytics.HistoricalData.ComputationTool
{
    public static class ClientDWConnection
    {
        public static string GetConnectionString()
        {
            var connectionString = ConfigurationManager.ConnectionStrings["ClientPlatform"].ConnectionString;
            var connectionStringsManager =
                ConnectionStringsManager.GetInstance(ConnectionStringsRepository.GetInstance(connectionString));
            return connectionStringsManager.GetConnectionString(ConnectionStringType.ClientDW);
        }
    }
}